import java.util.concurrent.*;

/**
 * @author Jiange
 * @create 2021-07-16-15:26
 */
public class MyExcutor {
    public static void main(String[] args) {
        new ThreadPoolExecutor(
          2,
          5,
          2L,
                TimeUnit.SECONDS,
                new ArrayBlockingQueue<>(3),
                Executors.defaultThreadFactory(),
                new ThreadPoolExecutor.AbortPolicy()
        );
//        CompletableFuture<Void> async = CompletableFuture.supplyAsync(() -> {
//            return
//        });
//    async.whenComplete((t,u)->{
//        System.out.println("t是返回值 u是错误信息");
//    }).get();
    }
}
